package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.BankFinancingProductTerminationInfoDo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BankFinancingProductTerminationInfoDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BankFinancingProductTerminationInfoDo record);

    int insertSelective(BankFinancingProductTerminationInfoDo record);

    BankFinancingProductTerminationInfoDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BankFinancingProductTerminationInfoDo record);

    int updateByPrimaryKey(BankFinancingProductTerminationInfoDo record);

    int deleteByReportOrgCodeAndReportDate(@Param("reportOrgCode") String reportOrgCode,
                                           @Param("reportDate") Date reportDate);

    int deleteByProductCode(String productCode);

    List<BankFinancingProductTerminationInfoDo> selectByReportMonth(String reportMonth);
}